﻿using WindowsForms.AOnline.View.Dictionary;
//using System.Threading.Tasks;

namespace WindowsForms.AOnline.Presenter.Dictionary.AutoBusiness
{
    public class AutoBusinesssPresenter : Presenter<IAutoBusinesssView> 
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CurrenciesPresenter" /> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public AutoBusinesssPresenter(IAutoBusinesssView view) 
            : base(view)
        {
        }

        /// <summary>
        /// Displays this instance.
        /// </summary>
        public void Display(int page)
        {
            View.AutoBusinesss = Model.GetAutoBusinesss(page);
        }

        public int GetPageSize()
        {
            return Model.GetPageSizeAutoBusinesss();
        }


        public void GetAll() 
        {
            View.AutoBusinesss = Model.GetAllAutoBusinesss();
        }
    }
}
